import { IsString, IsNotEmpty, ValidateNested } from 'class-validator';
import { Type } from 'class-transformer';
import { CreateUserDto } from '../../users/dto/create-user.dto';

export class AdminRegisterDto {
  @ValidateNested()
  @Type(() => CreateUserDto)
  userData: CreateUserDto;

  @IsString()
  @IsNotEmpty()
  adminCode: string;
}